package 慕课网.homework;

public class test1 {
    public static void main(String[] args) {
        section sec1=new section("D001","人事部");
        section sec2=new section("D002","市场部");
        duty dut1=new duty("P001","经理");
        duty dut2=new duty("P002","助理");
        duty dut3=new duty("P003","职员");
        staff sta1=new staff("张铭","S001","男",29,dut1,"人事部");
        staff sta2=new staff("李艾爱","S002","女",21,dut2,"人事部");
        staff sta3=new staff("孙超","S003","男",29,dut3,"人事部");
        staff sta4=new staff("张美美","S004","女",26,dut3,"市场部");
        staff sta5=new staff("蓝迪","S005","男",37,dut1,"市场部");
        staff sta6=new staff("米莉","S006","女",24,dut3,"市场部");
        System.out.println(sta1.introduction());
        System.out.println("======================");
        System.out.println(sta2.introduction());
        System.out.println("======================");
        System.out.println(sta3.introduction());
        System.out.println("======================");
        System.out.println(sta4.introduction());
        System.out.println("======================");
        System.out.println(sta5.introduction());
        System.out.println("======================");
        System.out.println(sta6.introduction());
        System.out.println("======================");
        sec1.addStaff(sta1);
        sec1.addStaff(sta2);
        sec1.addStaff(sta3);
        sec1.addStaff(sta4);
        sec1.addStaff(sta5);
        sec1.addStaff(sta6);
        System.out.println("人事部"+sec1.getNumber()+"人");
        System.out.println("市场部："+(6-sec1.getNumber())+"人");
    }
}
